﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _8Group.MES.MeasuringUnit.DTO;
using Volo.Abp.Application.Services;

namespace _8Group.MES.MeasuringUnit
{
    public interface IMeasuringUnitService:IApplicationService
    {
        /// <summary>
        /// 获取计量单位
        /// </summary>
        /// <param name="measureCode"></param>
        /// <param name="measureName"></param>
        /// <returns></returns>
        Task<string> GetMeasuringUnitAsync(string? measureCode, string? measureName);
        //Task<MeasuringUnitListDTO> GetMeasuringUnitPageAsync(string? measureCode, string? measureName, int pageIndex, int pageSize);
        
        /// <summary>
        /// 新增计量单位
        /// </summary>
        /// <param name="input"></param>
        Task<CreateMeasuringUnit> AddMeasuringUnit(CreateMeasuringUnit input);

        /// <summary>
        /// 反填计量单位
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<string> UpdateUnitMeasureById(UpdateMeasuringUnitDTO input);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteMeasuringUnit(int id);
    }
}
